package com.bluegalaxy.sitescore.mapper;

import com.bluegalaxy.sitescore.entity.SelectDangerous;
import com.bluegalaxy.sitescore.entity.TbSelectDangerous;
import com.baomidou.mybatisplus.mapper.AutoMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * TbSelectDangerous 表数据库控制层接口
 *
 */
public interface TbSelectDangerousMapper extends AutoMapper<TbSelectDangerous> {

    List<SelectDangerous> getDangerousBySid(@Param("sid") int sid,@Param("type") int type);

    List<SelectDangerous> getDangerousBySid2(@Param("sid") int sid);

    boolean delDangerousListById(@Param("idList")List<Integer> idList);

    boolean delDangerousListBySid(@Param("sid")int sid);

    boolean insertDangerousList(@Param("dangerousList") List<SelectDangerous> selectDangerousList);

    boolean insertDangerousList2(@Param("dangerousList") List<SelectDangerous> selectDangerousList);
}